// var cate = ['day','i1','i2','i3'];
// var info1 = ['d1',30,40,10];
// var info2 = ['d2',50,20,30];
// var data2=[info1,info2];
var mCharts = echarts.init(document.querySelector('#stackbar'));
var option = {
	title:{
		text:'堆叠柱状图',
		top:'5%',left:'center',
		textStyle:{
			color:'red',
			fontSize:20
		}
	},
	legend: {},
	tooltip: {
		trigger: "axis",
		axisPointer: {
			  type: "shadow"
			},
		position: function (pos, params, el, elRect, size) {
			var obj = {top: 10};
			obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
			return obj;
		},
		extraCssText: 'width: 170px'
	},
	grid:[
		{bottom:61},
		{height:60,
		bottom:0}
	],
	dataset:{
		source:thedata},
	xAxis:{
		type:'category'
		
	},
	yAxis:{
		type:'value'
		
	},
	series:[
		{
			name:'deny',
			stack: 'aa',
			
			type:'bar'
		},
		{
			name:'denyTime',
			stack: 'aa',
			
			type:'bar'
		}
	]
};
mCharts.setOption(option)